﻿/// <reference path="../GeneratedArtifacts/viewModel.js" />

myapp.AddEditPatient.Delete_execute = function (screen) {
    screen.Patient.deleteEntity();
    myapp.commitChanges().then(null, function fail(e) {
        alert(e.message);
        myapp.cancelChanges();
        throw e;
    });
};
